
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>{$_page_title}</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/style/base.css" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/Home/style/index.css" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/Home/style/global.css" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/Home/style/header.css" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/Home/style/bottomnav.css" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/Home/style/footer.css" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/Home/style/goods.css" type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/Home/style/common.css" type="text/css">
    <script type="text/javascript" src="__PUBLIC__/Home/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Home/js/header.js"></script>
</head>
<body>
<!-- 顶部导航 start -->
<div class="topnav">
    <div class="topnav_bd w1210 bc">
        <div class="topnav_left">

        </div>
        <div class="topnav_right fr">
            <ul>
                <li id="loginInfo"></li>
                <li class="line">|</li>
                <li><a href="{:U('My/order')}">我的订单</a></li>
                <li class="line">|</li>
                <li>客户服务</li>

            </ul>
        </div>
    </div>
</div>
<!-- 顶部导航 end -->
<!-- -->
<?php if($_show_nav==1): ?>
   <include file="Common/nav"/>
<?php endif;?>
{__CONTENT__}
<?php if($_show_nav==1): ?>
<include file="Common/help"/>
<?php endif;?>

<!-- 底部版权 start -->
<div style="clear:both;"></div>
<div class="footer w1210 bc mt10">
    <p class="links">
        <a href="">关于我们</a> |
        <a href="">联系我们</a> |
        <a href="">人才招聘</a> |
        <a href="">商家入驻</a> |
        <a href="">千寻网</a> |
        <a href="">奢侈品网</a> |
        <a href="">广告服务</a> |
        <a href="">移动终端</a> |
        <a href="">友情链接</a> |
        <a href="">销售联盟</a> |
        <a href="">京西论坛</a>
    </p>
    <p class="copyright">
        © 2005-2013 京东网上商城 版权所有，并保留所有权利。  ICP备案证书号:京ICP证070359号
    </p>
    <p class="auth">
        <a href=""><img src="__PUBLIC__/Home/images/xin.png" alt="" /></a>
        <a href=""><img src="__PUBLIC__/Home/images/kexin.jpg" alt="" /></a>
        <a href=""><img src="__PUBLIC__/Home/images/police.jpg" alt="" /></a>
        <a href=""><img src="__PUBLIC__/Home/images/beian.gif" alt="" /></a>
    </p>
</div>
<!-- 底部版权 end -->
</body>
</html>
<script>
    $.ajax({
        type:'GET',
        url: "{:U('Member/ajaxChkLogin')}",
        dataType:'json',
        success:function (data) {
            if(data.login ==1){
                var li ='您好,'+ data.username + '[<a href="<?php echo U('Member/logout');?>">退出</a>]';
                $('#loginInfo').html(li);
            }else{
                var li ='您好,欢迎来到京西![<a href="<?php echo U('Member/login');?>">登录</a>] [<a href="<?php echo U('Member/regist') ?>">免费注册</a>]';
                $('#loginInfo').html(li);
            }
        }
    });
</script>